
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="row">

        <div class="form-group">
			<label class="control-label col-xs-12 col-sm-2">{:__('客户')}:</label>
			<div class="col-xs-12 col-sm-8">
				<input id="c-customer_id" data-rule="required" min="0" data-source="facrm/customer/index" class="form-control selectpage" name="row[customer_id]" type="text" value="{$row.project['customer_id']}" readonly>
			</div>
		</div>
		<div class="form-group">
			<label class="control-label col-xs-12 col-sm-2">{:__('项目')}:</label>
			<div class="col-xs-12 col-sm-8">
				<input id="c-project_id" data-source="workteam/project/index" class="form-control selectpage" name="row[project_id]" type="text" value="{$row.project_id}">
			</div>
		</div>
		<div class="form-group">
			<label class="control-label col-xs-12 col-sm-2">{:__('任务')}:</label>
			<div class="col-xs-12 col-sm-8">
				<input id="c-task_id" data-source="workteam/task/index" class="form-control selectpage" name="row[task_id]" type="text" value="{$row.id}">
			</div>
		</div>
        <div class="form-group">
            <label for="c-service_client" class="control-label col-xs-12 col-sm-2">{:__('服务对象')}:</label>
            <div class="col-xs-12 col-sm-8">
				<input id="c-service_client" data-source='{:config_to_source($service_client)}' data-field="value" data-primary-key="key" data-order-by="key" data-multiple="true" class="form-control selectpage" name="row[service_client]" type="text" value=""   >
            </div>
        </div>
		<div class="form-group">
			<label class="control-label col-xs-12 col-sm-2">{:__('服务时间')}:</label>
			<div class="col-xs-12 col-sm-8">
				<input id="c-service_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[service_time]" type="text" value="{:date('Y-m-d H:i:s',$row->start_time)}">
			</div>
		</div>
		<div class="form-group">
			<label class="control-label col-xs-12 col-sm-2">{:__('服务时长(分钟)')}:</label>
			<div class="col-xs-12 col-sm-8">
				<input id="c-service_hours" data-rule="required;range(0~999)" class="form-control" name="row[service_hours]" type="text" value="">
			</div>
		</div>




        <div class="form-group">
            <label for="c-content" class="control-label col-xs-12 col-sm-2">{:__('内容')}:</label>
            <div class="col-xs-12 col-sm-8">
                <textarea id="c-content" class="form-control editor" name="row[content]">完成任务：{$row.project.name} - {$row.name}</textarea>
            </div>
			<span class="text-red ">可对外展示的内容</span>
        </div>

        <div class="form-group">
            <label for="c-secret" class="control-label col-xs-12 col-sm-2">{:__('隐私内容')}:</label>
            <div class="col-xs-12 col-sm-8">
                <textarea id="c-secret" class="form-control editor" name="row[secret]">{$row.content}</textarea>
            </div>
			<span class="text-red ">隐私内容，不宜对外展示</span>
        </div>


    </div>


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>


